<template>
	<view class="container">
		<view class="header">
			<u-icon name="arrow-left" color="#fff" size="20" @click="back" class="back"></u-icon>
			<text class="hearderTitle">{{option.barTitle}}</text>
			<view class="intro">
				<text class="name">钟书</text>
				<image src="../../static/images/female.png" alt="" class="female"><br>
					<text class="information" style="margin-top: 26rpx;">学院：计算机与信息学院</text><br>
					<text class="information">专业：计算机科学与技术专业</text><br>
					<text class="information">班级：112班</text><br>
					<view style="margin-top: 12rpx;">
						<image src="../../static/images/mobile.png" alt="" class="mobileIcon" />
						<text class="mobile">18768148932</text>
					</view>

					<!-- 头像 -->
					<view class="avatar"></view>
					<!-- 标识 -->
					<view class="identification">
						<image src="../../static/images/identification.png" alt="">
							<text>特困生</text>
					</view>
			</view>
		</view>

		<view class="resume" style="margin-top: 210rpx;">
			<text class="title">自我评价</text>
			<image src="../../static/images/right.png" alt="" style="width: 36rpx;height: 38rpx;float: right;"/>
		</view>
		<view class="resume">
			<text class="title">校内荣誉</text>
			<view class="addBlock">
				<image src="../../static/images/addTime.png" alt="" class="add" />
				<text>添加校内荣誉</text>
			</view>
		</view>
		<view class="resume">
			<text class="title">校内职务</text>
			<view class="addBlock">
				<image src="../../static/images/addTime.png" alt="" class="add" />
				<text>添加校内荣誉</text>
			</view>
		</view>
		<view class="resume">
			<text class="title">技能特长</text>
			<view class="addBlock">
				<image src="../../static/images/addTime.png" alt="" class="add" />
				<text>添加校内荣誉</text>
			</view>
		</view>
		<view class="resume" style="margin-bottom: 100px;">
			<text class="title">扩展简历</text>
			<view class="addBlock">
				<image src="../../static/images/addTime.png" alt="" class="add" />
				<text>添加校内荣誉</text>
			</view>
		</view>

		<view class="bottomBtn" @click="">
			<u-button type="primary" class="btn">保存</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				option: '',
			}
		},
		onLoad(option) {
			this.option = option
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	page {
		background: #FAFAFA;
	}

	.header {
		background-image: url(../../static/images/resumeBg.png);
		background-repeat: no-repeat;
		background-size: 750rpx 444rpx;

		.hearderTitle {
			font-size: 36rpx;
			font-weight: 600;
			color: #FFFFFF;
			display: flex;
			justify-content: center;
			position: relative;
			top: -4rpx;
		}

		.back {
			position: relative;
			width: 54rpx;
			height: 54rpx;
			background: rgba(255, 255, 255, 0.5);
			border: 2px solid rgba(221, 221, 221, 0.3);
			border-radius: 50%;
			top: 40rpx;
			left: 20rpx;
			z-index: 100;
		}

		.intro {
			height: 328rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			position: relative;
			top: 200rpx;
			margin: 0 32rpx;
			padding: 34rpx 40rpx;

			.name {
				font-size: 36rpx;
				font-weight: 500;
				color: #333333;
				position: relative;
			}

			.name::before {
				content: '';
				display: block;
				width: 8rpx;
				height: 40rpx;
				background: #2674FF;
				border-radius: 0px 200rpx 200rpx 0px;
				position: absolute;
				left: -40rpx;
				top: 4rpx;
			}

			.female {
				width: 34rpx;
				height: 36rpx;
				vertical-align: middle;
				margin-left: 10rpx;
			}

			.information {
				font-size: 28rpx;
				font-weight: 400;
				color: #666666;
				margin-bottom: 8rpx;
			}

			.mobileIcon {
				width: 26rpx;
				height: 36rpx;
				vertical-align: middle;
			}

			.mobile {
				font-size: 28rpx;
				font-weight: 400;
				color: #666666;
				margin-left: 12rpx;
			}

			.avatar {
				width: 164rpx;
				height: 216rpx;
				border-radius: 8rpx;
				border: 1px solid red;
				position: absolute;
				right: 32rpx;
				top: 34rpx;
			}

			.identification {
				position: absolute;
				right: 36rpx;
				top: 260rpx;

				image {
					width: 140rpx;
					height: 42rpx;
				}

				text {
					font-size: 20rpx;
					font-weight: 400;
					color: #FFFFFF;
					position: absolute;
					left: 58rpx;
					top: 6rpx;
				}
			}
		}
	}

	.resume {
		background: #FFFFFF;
		border-radius: 16rpx;
		margin: 0 32rpx;
		padding: 34rpx 40rpx;
		position: relative;
		margin-bottom: 16rpx;

		.title {
			font-size: 32rpx;
			font-weight: 500;
			color: #333333;
			position: relative;
		}

		.title::before {
			content: '';
			display: block;
			width: 8rpx;
			height: 40rpx;
			background: #2674FF;
			border-radius: 0px 200rpx 200rpx 0px;
			position: absolute;
			left: -40rpx;
			top: 4rpx;
		}

		.addBlock {
			display: flex;
			justify-content: center;
			margin-top: 40rpx;

			.add {
				width: 34rpx;
				height: 34rpx;
				vertical-align: middle;
			}

			text {
				font-size: 28rpx;
				font-weight: 400;
				color: #2674FF;
				margin-left: 16rpx;

			}
		}
	}

	// 底部按钮
	.bottomBtn {
		width: 100%;
		height: 148rpx;
		background: #FFFFFF;
		display: block;
		position: fixed;
		bottom: 0;
		z-index: 2;
		box-shadow: 0px -4px 8px 0px rgba(0, 0, 0, 0.05);

		.btn {
			width: 686rpx;
			height: 100rpx;
			background: #2674FF;
			border-radius: 8rpx;
			margin-top: 24rpx;
		}
	}
</style>
